package com.example.administrator.mobile;

import android.content.Intent;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

public class InstallActivity extends AppCompatActivity {
    SjFragment sjFragment;
    ElsFragment elsFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_install);
         sjFragment = new SjFragment();
         elsFragment = new ElsFragment();
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.cont,sjFragment)
                .addToBackStack("")
                .commit();


    }

    public void fanhui(View view) {
        Intent intent = new Intent(this,SoftActivity.class);
        startActivity(intent);
    }

    public void sj(View view) {
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.cont,sjFragment)
                .addToBackStack("")
                .commit();

    }

    public void els(View view) {
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.cont,elsFragment)
                .addToBackStack("")
                .commit();


    }
}
